package com.itCar.base.api.wxApi.wxAuth.pojo.info;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;

import java.util.Map;

/**
 * @ClassName: ImageMessage
 * @Description: TODO
 * @author: liuzg
 * @Date: 2022/8/31 17:04
 * @Week: 星期三
 * @Version: v1.0
 */
@Data
@XStreamAlias("xml")
public class ImageMessage extends BaseMessage {

    @XStreamAlias("MediaId")
    private String mediaId;

    public ImageMessage(){}

    public ImageMessage(Map<String, String> requestMap, String mediaId){
        super(requestMap);
        // 设置图片消息的msgType为text
        this.setMsgType("image");
        this.mediaId = mediaId;
    }
}
